﻿#define _CRT_SECURE_NO_WARNINGS 1



#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int s[10000], n, i;

int cmp(const void* a, const void* b)
{
	return (*(int*)a - *(int*)b);
}

int main()
{
	scanf("%d", &n);
	for (i = 0; i < n; i++)
		scanf("%d", &s[i]);

	qsort(s, n, sizeof(s[0]), cmp);

	for (i = 0; i < n; i++)
		printf("%d ", s[i]);

	return 0;
}


